package com.csw.rabbitmq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestRabbitMqController {
    @Autowired
    private RabbitMqSend rabbitMqSend;


    @PostMapping("send")
    public void send() {
        SendEntity sendEntity = new SendEntity();
        sendEntity.setName("张三");
        sendEntity.setAge(11);

            rabbitMqSend.postInsertQuene(sendEntity);


    }
}
